package com.bst.bsj.common.dal.ibatis;

import org.springframework.stereotype.Service;

import com.bst.bsj.common.dal.daointerface.SeedlingTypeModelParamsRelationDAO;
import com.bst.bsj.common.dal.dataobject.SeedlingTypeModelParamsRelation;
import com.sylinxsoft.tools.dao.impl.CommonBaseDAOImpl;

@Service("seedlingTypeModelParamsRelationDAO")
public class SeedlingTypeModelParamsRelationDAOImpl extends CommonBaseDAOImpl implements
    SeedlingTypeModelParamsRelationDAO {

  @Override
  public void insert(SeedlingTypeModelParamsRelation modelParamsRelation) {
    getSqlMapClientTemplate().insert(getNameSpace() + ".MS_INSERT", modelParamsRelation);
  }

  @Override
  public int delete(Long id) {
    return getSqlMapClientTemplate().delete(getNameSpace() + ".MS_DELETE", id);
  }

}
